const cheerio = require("cheerio");
const http = require("http");
const fs = require("fs");
const path = require("path");

var filePath = path.join(__dirname,"/index.html");
var fileContent = fs.readFileSync(filePath);
fileContent = fileContent.toString("utf8");
var $ = cheerio.load(fileContent);
$("ul li").each((i,el)=>{
    console.log($(el).text());
    console.log($(el).attr("id"));
})